<?php
/**
 * 我的优惠券
 * User: tengyu
 * Date: 2017/8/31
 * Time: 16:42
 */?>
@extends('common.common')
@section('title','优惠券-个人中心')
@section('css')<link rel="stylesheet" href="{{asset('/css/personal_coupon.css')}}">@endsection
@section('content')
    <div id="content">
        <!--nav start-->
        @include('common.centernav')
        <!--nav end-->
        <h3>个人中心</h3>
        <div class="container">
            <div class="row">
                <!--sidebar start-->
                @include('usercenter.usersidebar')
                <!--sidebar end-->
                <!--2、右侧主体-->
                <div class="col-xs-9">
                    <!--右侧面版-->
                    <div id="panel" class="panel panel-default rightPanel">
                        <div class="panel-heading"><h4>我的优惠券</h4></div>
                        <div class="panel-body">
                            <ul class="nav nav-tabs">
                                <li class="active">
                                    <a href="#t1" data-toggle="tab">可用优惠券</a>
                                </li>
                                <li>
                                    <a href="#t2" data-toggle="tab">已使用优惠券</a>
                                </li>
                                <li>
                                    <a href="#t3" data-toggle="tab">已过期优惠券</a>
                                </li>
                            </ul>
                            <!--创建内容组-->
                            <div class="tab-content">
                                <!--1-->
                                <div class="tab-pane active" id="t1">
                                    <ul class="list-inline">
                                    @if(count($param['coupon_useable'])>0)
                                    @foreach($param['coupon_useable'] as $k=>$v)
                                        <li><img src="{{asset(env('STATIC_FILE_ERP_PATH').$v->coupon_img)}}" alt="优惠券使用图片"></li>
                                    @endforeach
                                    @else
                                        <li><img src="{{asset('/img/771509094256_.pic.jpg')}}" alt="暂无数据"></li>
                                    @endif
                                    </ul>
                                </div>
                                <!--2-->
                                <div class="tab-pane" id="t2">
                                    <ul class="list-inline">
                                    @if(count($param['coupon_used'])>0)
                                    @foreach($param['coupon_used'] as $k=>$v)
                                        <li>
                                            <img src="{{asset(env('STATIC_FILE_ERP_PATH').$v->coupon_img)}}" alt="已用优惠券">
                                            <a href="{{url('/user/orderdt/'.$v->orderid)}}" style="color:#f29600;">查看详情</a>
                                        </li>
                                    @endforeach
                                    @else
                                        <li><img src="{{asset('/img/771509094256_.pic.jpg')}}" alt="暂无数据"></li>
                                    @endif
                                    </ul>
                                </div>
                                <!--3-->
                                <div class="tab-pane" id="t3">
                                    <ul class="list-inline">
                                    @if(count($param['coupon_overuse'])>0)
                                    @foreach($param['coupon_overuse'] as $k=>$v)
                                        <li><img src="{{asset(env('STATIC_FILE_ERP_PATH').$v->coupon_img)}}" alt="已过期优惠券"></li>
                                    @endforeach
                                    @else
                                        <li><img src="{{asset('/img/771509094256_.pic.jpg')}}" alt="暂无数据"></li>
                                    @endif
                                    </ul>
                                </div>
                         {{--<div class="text-center"><img src="{{asset('/img/working.jpg')}}" alt="研发中"></div>--}}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--隔断底部-->
    <div id="partition"></div>
@endsection
